/**
 * Created by liujz on 3/6/17.
 */
const Klass = require("./klass.js").Klass;
const Student = require("./student").Student;

function studentTest(){
    const klass2 = new Klass(2);
    const student = new Student('Tom', '21', klass2);
    klass2.assignLeader(student);
    const expectResult = 'My name is Tom. I am 21 years old. I am a Student. I am Leader of Class 2.';
    if(student.introduce() === expectResult){
        console.log('test passed');
    }else{
        console.log('test failed');
    }
}

studentTest();

